package com.laolang.shop.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.laolang.shop.modules.sys.entity.SysUser;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
public interface SysUserService extends IService<SysUser> {
    SysUser findByPhone(String phone);

    /**
     * 创建用户账号
     *
     * @param phone    手机号
     * @param pwd      密码
     * @param tenantId 租户id
     * @param type     用户账号类型
     * @return SysUser
     */
    SysUser createSysUser(String phone, String pwd, Long tenantId, Integer type);

    SysUser getByPhone(String phone);
}
